﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IDManagement.aspx.cs" Inherits="Web.IDManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server" />
    <ext:GridPanel runat="server" ID="gpUsr" >
        <TopBar>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:Button runat="server" ID="btnSave" Text="保存">
                        <DirectEvents>
                            <Click OnEvent="Save_Click" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button runat="server" ID="btnAdd" Text="新增">
                        <DirectEvents>
                            <Click OnEvent="Add_Click" />
                        </DirectEvents>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </TopBar>
        <Store>
            <ext:Store runat="server">
                <Reader>
                    <ext:JsonReader IDProperty="ID">
                        <Fields>
                            <ext:RecordField Name="ID" Type="Int" />
                            <ext:RecordField Name="UserName" Type="String" />
                            <ext:RecordField Name="UserCName" Type="String" />
                            <ext:RecordField Name="EmployeeCode" Type="String" />
                            <ext:RecordField Name="DefaultApproveID" Type="Int" />
                            <ext:RecordField Name="Department" Type="String" />
                            <ext:RecordField Name="Division" Type="String" />
                            <ext:RecordField Name="Status" Type="String" />
                        </Fields>
                    </ext:JsonReader>
                </Reader>
            </ext:Store>            
        </Store>
        <ColumnModel runat="server">
            <Columns>
                <ext:Column Header="ID" DataIndex="ID" />
                <ext:Column Header="用户名" DataIndex="UserName" Editable="true" />
                <ext:Column Header="中文名" DataIndex="UserCName" Editable="true" />
                <ext:Column Header="员工号" DataIndex="EmployeeCode" Editable="true" />
                <ext:Column Header="默认审批人" DataIndex="DefaultApproveID"  Editable="true"/>
                <ext:Column Header="部门" DataIndex="Department" Editable="true" />
                <ext:Column Header="科室" DataIndex="Division" Editable="true" />
                <ext:Column Header="状态" DataIndex="Status" Editable="true" />
            </Columns>
        </ColumnModel>
        <SelectionModel>
            <ext:RowSelectionModel ID="rsm" runat="server" />
        </SelectionModel>
    </ext:GridPanel>
    </form>
</body>
</html>
